package com.hqj.controller;

import com.hqj.service.GetInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/cc")
public class ConsumerController {


    @Autowired
    private GetInfo getInfo;


    @RequestMapping("/getInfo")
    @ResponseBody
    public String getInfo(){
        return getInfo.getStr();
    }

}
